﻿@model ManageReportVer1.Models.Item

@{
    ViewBag.Title = "UpdateItem";
    Layout = "~/Views/Shared/_LayoutSecurityGuard.cshtml";
}

<h2>UpdateItem</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>Item</legend>

        @Html.HiddenFor(model => model.ItemId)

        <div class="editor-label">
            @Html.LabelFor(model => model.DepartmentId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.DepartmentId)
            @Html.ValidationMessageFor(model => model.DepartmentId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ParentsId)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ParentsId)
            @Html.ValidationMessageFor(model => model.ParentsId)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.ItemName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ItemName)
            @Html.ValidationMessageFor(model => model.ItemName)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div class="backToView">
    @Html.ActionLink("Quay lại danh sách biểu mẫu", "ViewItem")
</div>

